package com.whsxt.common;

import java.io.Serializable;

import lombok.Data;

@Data
public class ResultData implements Serializable{
	
	
	private static final long serialVersionUID = -4070738747682825381L;

	private int code = 200;
	
	private String msg = "SUCCESS";

	private Object data;
	
	public ResultData() {
	}

	public ResultData(int code, String msg) {
		super();
		this.code = code;
		this.msg = msg;
	}

	public ResultData(CodeMsg codeMsg) {
		this.code = codeMsg.getCode();
		this.msg = codeMsg.getMsg();
	}
	public ResultData(Object data) {
		this.data = data;
	}
	
}
